<?php

namespace app\common\validate;

use think\Validate;

class CommentRule extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require',
        'behavior_category_type' => 'require',
        'time_type' => 'require',
        'start_time' => 'require',
        'end_time' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'behavior_category_type' => '分类',
        'time_type' => '时间段',
        'start_time' => '开始时间',
        'end_time' => '结束时间',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
